#ifndef dkl_header_h
#define dkl_header_h

//version 0, 2006-08-23, alex.kaplan@web.de
//version 1, 2006-09-14, alex.kaplan@web.de

#include <sys/types.h>
#include "dackel_date.h"

#define DKL_HEADER_MAGIC   0xda
#define DKL_HEADER_VALID   0
#define DKL_HEADER_INVALID 1

#if defined __cplusplus
extern "C"
{
#endif

		struct __dkl_header {                // size in bytes
				                                 // -------------
				u_int8_t           magic_byte;   //      1
				u_int8_t           version;      //      1
				u_int32_t          length;       //      4
				u_int8_t           status;       //      1
				u_int32_t          count;        //      4
				dackel_date        date;         // 8byte, see dackel_date.h
				u_int8_t           dummy;        
		};

		typedef struct __dkl_header dkl_header;

#if defined __cplusplus
}
#endif

#endif
